/*
 * @Author: 梦付千秋星垂野 465943794@qq.com
 * @Date: 2022-09-30 10:15:12
 * @LastEditors: 梦付千秋星垂野 465943794@qq.com
 * @LastEditTime: 2022-10-13 14:29:48
 * @FilePath: /practise--chat-app-react-nodejs/pubilc/src/App.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from "react";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import SetAvatar from "./components/SetAvatar";
import Chat from "./pages/Chat";
import Login from "./pages/Login";
import Register from "./pages/Register";
import App2 from "./test/test_useState";
export default function App() {
  return (
    <BrowserRouter>
      <Routes>
        <Route path="/register" element={<Register />} />
        <Route path="/login" element={<Login />} />
        <Route path="/setAvatar" element={<SetAvatar />} />
        <Route path="/test_useState" element={<App2 />} />
        <Route path="/" element={<Chat />} />
      </Routes>
    </BrowserRouter>
  );
}




